<script setup>

import router from "@/router/index.js";

const login=()=>{
  router.push('/home/index')
}
</script>

<template>
    <h3>登录页面</h3>
    <button @click="login">登录</button>
  <br>
<!--  声明式路由  -->
  <RouterLink to="/register">去注册</RouterLink>
</template>

<style scoped>

</style>